package com.ys.entity.business;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_BoutiqueDiscount", catalog="Id")
public class TpBoutiqueDiscount extends BaseEntity<TpBoutiqueDiscount> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Amount", nameJava="amount", typeDataBase="decimal")
	private BigDecimal amount;
	@YsField(nameDataBase="Discount", nameJava="discount", typeDataBase="decimal")
	private BigDecimal discount;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpBoutiqueDiscount setId(Long id) {
		this.id = id;
		return this;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public TpBoutiqueDiscount setAmount(BigDecimal amount) {
		this.amount = amount;
		return this;
	}
	public BigDecimal getDiscount() {
		return discount;
	}
	public TpBoutiqueDiscount setDiscount(BigDecimal discount) {
		this.discount = discount;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpBoutiqueDiscount setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpBoutiqueDiscount setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpBoutiqueDiscount setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpBoutiqueDiscount tpBoutiqueDiscount(
		BigDecimal amount,
		BigDecimal discount,
		Integer status
			) {
		TpBoutiqueDiscount entity = new TpBoutiqueDiscount();
		entity.setAmount(amount);
		entity.setDiscount(discount);
		entity.setStatus(status);
		return entity;
	}
}